package com.jing.yao.modules.role.controller.dto;

import com.jing.yao.annotation.Formatter;
import com.jing.yao.component.dto.YaoBaseDTO;

import java.io.Serializable;
import java.util.List;


/**
 * 角色DTO
 *
 * @author lirui
 * @since 2020-06-13
 */
public class RoleDTO extends YaoBaseDTO implements Serializable {
    /**
     * 角色编码
     */
    private String roleCode;

    /**
     * 角色名称
     */
    private String roleName;

    /**
     * 是否有效
     */
    @Formatter(dictCode = "enabled", targetField = "enabledStr")
    private Integer enabled;

    /**
     * 备注
     */
    private String remark;

    /**
     * 权限列表
     */
    private List<String> resCodes;

    public String getRoleCode() {
        return roleCode;
    }

    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public Integer getEnabled() {
        return enabled;
    }

    public void setEnabled(Integer enabled) {
        this.enabled = enabled;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public List<String> getResCodes() {
        return resCodes;
    }

    public void setResCodes(List<String> resCodes) {
        this.resCodes = resCodes;
    }
}
